<template>
    <div class="bargin-item">
        <img :src="good.pic" alt="">
        <div class="good-detail">
            <div>
                <div class="title" v-html="good.name"></div>
                <span class="desc">{{good.characteristic}}</span>
            </div>
            <div class="price-num">
                <section class="min-price">
                    <span>￥{{good.minPrice}}</span>
                    <p>底价</p>
                </section>
                <section>
                    <span>￥{{good.originalPrice}}</span>
                    <p>原件</p>
                </section>
                <section>
                    <span>{{good.stores}}</span>
                    <p>限量</p>
                </section>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        good: Object
    }
}
</script>

<style scoped lang="scss">
.bargin-item {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    font-size: 32px;
    background-color: #fff;
    border-top: 1px solid #eee;
    img {
        display: block;
        width: 252px;
        height: 252px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .good-detail {
        display: flex;
        flex-direction: column;
        width: 380px;
        justify-content: space-between;
        height: 252px;
        margin-left: 20px;
        .title {
            margin-bottom: 20px;
            font-size: 30px;
        }
        .desc {
            font-size: 28px;
            color: #ccc;
        }
        .price-num {
            display: flex;
            justify-content: space-between;
            font-size: 28px;
            text-align: center;
            color: #888;
            p {
                margin-top: 20px;
            }
            .min-price {
                span {
                    color: #d00000;
                }
                p{
                    color: #333;
                }
            }
        }
    }
}
</style>